<?php

/*
 * Edit by shengxin
 * Click nbfs://nbhost/SystemFileSystem/Templates/Scripting/PHPClass.php to edit this template
 */

namespace api\v1\controller;

use api\base\CRestBase;
/**
 * Description of ApplicationProgramsController
 *
 * @author PC
 */
class ApplicationProgramsController extends CRestBase{
    //put your code here
    public function general(){
        $str = '[{
		"id": "45901059237d43aa95785ba200717005",
		"studentId": "07d51f5d1577423ca1d82a570ee34fd9",
		"name": "手机管家",
		"packageName": "com.miui.securitycenter",
		"image": "/unZip/app/62c3c431f741ac3fe6f25056e2cbc93b.png",
		"dailyStatus": 2,
		"dailyStartTime": null,
		"dailyEndTime": null,
		"weekendStatus": 2,
		"weekendStartTime": null,
		"weekendEndTime": null,
		"holidayStatus": 2,
		"holidayStartTime": null,
		"holidayEndTime": null,
		"isDisable": false,
		"isSystem": true,
		"type": 2,
		"brand": "1",
		"isWhitelist": false,
		"whitelistId": null,
		"availableDailyTime": -1,
		"isOpenAvailableDailyTime": 0,
		"useTime": 0
	}, {
		"id": "4bfd87adf41345ae9071f32d36dccad6",
		"studentId": "07d51f5d1577423ca1d82a570ee34fd9",
		"name": "音乐",
		"packageName": "com.miui.player",
		"image": "/unZip/app/4027b67442064232c8d581017497ed3e.png",
		"dailyStatus": 2,
		"dailyStartTime": null,
		"dailyEndTime": null,
		"weekendStatus": 2,
		"weekendStartTime": null,
		"weekendEndTime": null,
		"holidayStatus": 2,
		"holidayStartTime": null,
		"holidayEndTime": null,
		"isDisable": false,
		"isSystem": true,
		"type": 2,
		"brand": "1",
		"isWhitelist": false,
		"whitelistId": null,
		"availableDailyTime": -1,
		"isOpenAvailableDailyTime": 0,
		"useTime": 0
	}, {
		"id": "c03f8177c5354640b94771d359e30b8c",
		"studentId": "07d51f5d1577423ca1d82a570ee34fd9",
		"name": "便签",
		"packageName": "com.miui.notes",
		"image": "/unZip/app/b764ab8fd4ccbe3165f91a083df8a414.png",
		"dailyStatus": 2,
		"dailyStartTime": null,
		"dailyEndTime": null,
		"weekendStatus": 2,
		"weekendStartTime": null,
		"weekendEndTime": null,
		"holidayStatus": 2,
		"holidayStartTime": null,
		"holidayEndTime": null,
		"isDisable": false,
		"isSystem": true,
		"type": 2,
		"brand": "1",
		"isWhitelist": false,
		"whitelistId": null,
		"availableDailyTime": -1,
		"isOpenAvailableDailyTime": 0,
		"useTime": 0
	}, {
		"id": "eeac09d52d8d4c099fe7a05c5a850e3b",
		"studentId": "07d51f5d1577423ca1d82a570ee34fd9",
		"name": "计算器",
		"packageName": "com.miui.calculator",
		"image": "/unZip/app/38ad7be878e6a94ea572a44d8abd6872.png",
		"dailyStatus": 2,
		"dailyStartTime": null,
		"dailyEndTime": null,
		"weekendStatus": 2,
		"weekendStartTime": null,
		"weekendEndTime": null,
		"holidayStatus": 2,
		"holidayStartTime": null,
		"holidayEndTime": null,
		"isDisable": false,
		"isSystem": true,
		"type": 2,
		"brand": "1",
		"isWhitelist": false,
		"whitelistId": null,
		"availableDailyTime": -1,
		"isOpenAvailableDailyTime": 0,
		"useTime": 0
	}, {
		"id": "a824f6848b6b48e9a05a7484a2dc67c1",
		"studentId": "07d51f5d1577423ca1d82a570ee34fd9",
		"name": "相机",
		"packageName": "com.android.camera",
		"image": "/unZip/app/caae34098da1134bc19e02c93f41dfc2.png",
		"dailyStatus": 2,
		"dailyStartTime": null,
		"dailyEndTime": null,
		"weekendStatus": 2,
		"weekendStartTime": null,
		"weekendEndTime": null,
		"holidayStatus": 2,
		"holidayStartTime": null,
		"holidayEndTime": null,
		"isDisable": false,
		"isSystem": true,
		"type": 2,
		"brand": "4",
		"isWhitelist": false,
		"whitelistId": null,
		"availableDailyTime": -1,
		"isOpenAvailableDailyTime": 0,
		"useTime": 0
	}]';
        $data = json_decode($str,true);
        $this->success('ok',$data);
    }
}
